package com.wulinbus.service;

import java.util.List;

import com.wulinbus.model.CreativeLikeFlagModel;
import com.wulinbus.model.CreativeModel;

public interface CreativeService {

	public int getMaxCid();

	public void addCreative(CreativeModel creativeModel_c);

	public void addCreativeUrl(CreativeModel creativeModel_u);

	public List<CreativeModel> getCreativeList(String keyword,Integer start, Integer count); 
	
	public Integer count(String keyword);

	public List<CreativeModel> getCreativeUrlList(Integer cid);

	public void like(Integer cid);

	public CreativeModel getCreativeByCid(Integer cid);

	public List<CreativeModel> findCreativeByTitle(String search);

	public CreativeModel findCreativeByCreativeTitle(String title);

	public List<CreativeModel> findCreativeByUid(Integer uid, Integer start, Integer pageSize);

	public List<CreativeModel> findCreativeListByUids(List<Integer> uids);

	public List<CreativeModel> findCreativeListByCids(List<Integer> cids);
	
	public List<CreativeModel> findCreativeListByMids(List<Integer> mids);
	
	public Integer countByUid(Integer uid);

	public List<CreativeModel> findCreativeByUidOnly(Integer uid);

	public List<String> getUrlListByCid(Integer cid);

	public void updateCreative(CreativeModel creativeModel);

	public void deleteCreativeUrl(Integer cid);

	public void setLikeFlag(Integer cid, String uid);

	public CreativeLikeFlagModel getCreativeLikeModel(Integer cid, String uid);

	public Integer getLikeByCid(Integer cid);

	public Integer deleteCreativeUrlByMid(Integer mid,Integer cid);

	public List<CreativeModel> getMaxLikeCreativeList();

	public List<CreativeModel> getAllCreative(Integer start, Integer pageSize);

	public Integer delete(Integer cid);
}
